package com.pig4cloud.pigx.contract.websocket.message;

import com.pig4cloud.pigx.common.websocket.message.AbstractJsonWebSocketMessage;
import com.pig4cloud.pigx.contract.dto.ContractCurrentPriceConditionDTO;

/**
 * 获得当前最新价、标记价、指数价
 *
 * @date 2022/8/26 16:47
 */
public class ContractCurrentPriceWebsocketMessage extends AbstractJsonWebSocketMessage {
	/**
	 * 前端请求时会携带type，根据type匹配处理器
	 */
	public static final String TYPE = "currentPrice";

	public ContractCurrentPriceConditionDTO getData() {
		return data;
	}

	public void setData(ContractCurrentPriceConditionDTO data) {
		this.data = data;
	}

	private ContractCurrentPriceConditionDTO data;

	public ContractCurrentPriceWebsocketMessage() {
		super(TYPE);
	}

}
